<template>
  <div>
    <section>
      <h1 class="title">
        <span class="iconfont iconjingdongzhongchou"></span>募资情况
      </h1>
      <md-field>
        <md-cell-item
          title="平台总募资"
          :addon="info.allMoney.toString()"
          arrow
          @click="$commonJs.goPage('alwaysRaise')"
        />
        <md-cell-item
          title="当日募资"
          :addon="info.dayMoney.toString()"
          @click="$commonJs.goPage('onTheDayToRaise')"
          arrow
        />
      </md-field>
    </section>
    <section>
      <h1 class="title"><span class="iconfont iconhuiyuan"></span>会员情况</h1>
      <md-field>
        <md-cell-item title="平台会员总数" :addon="info.alluser.toString()" />
        <md-cell-item title="实名数量" :addon="info.authUser.toString()" />
        <md-cell-item title="当日注册数量" :addon="info.dayLogin.toString()" />
        <md-cell-item title="当日实名数量" :addon="info.dayAuth.toString()" />
        <md-cell-item
          title="会员总余额"
          :addon="info.allMemberMoney.toString()"
        />
      </md-field>
    </section>
    <section>
      <h1 class="title">
        <span class="iconfont iconchongzhi"></span>当日充值提现
      </h1>
      <md-field>
        <md-cell-item
          title="会员充值金额"
          :addon="info.recharge.toString()"
          @click="$commonJs.goPage('recharge')"
          arrow
        />
        <md-cell-item
          title="会员提现金额"
          :addon="info.getcash.toString()"
          @click="$commonJs.goPage('withdraw')"
          arrow
        />
      </md-field>
    </section>
  </div>
</template>

<script>
import { Field, CellItem, Icon } from "mand-mobile";
export default {
  name: "table",
  components: {
    [Field.name]: Field,
    [CellItem.name]: CellItem,
    [Icon.name]: Icon
  },
  props: {
    info: {
      type: Object
    }
  }
};
</script>

<style scoped lang="stylus">
.title{
  font-size 32px
  background color-primary
  line-height 70px
  padding 0 24px
  color white
  margin 0
  .iconfont{
    display inline-block
    margin-right 20px
  }
}
</style>
